<?php get_header(); ?>

	<div id="content" class="content">
		<div id="innerContent">
		<?php if (have_posts()) : ?>
			<?php while (have_posts()) : the_post(); ?>
				<div class="textbox">
					<div class="textbox_header"></div>
					<div class="textbox_inner">
		                <div class="textbox-title">
		                    <h1><?php the_title(); ?></h1>
		                </div>
		                <div class="textbox-content article-content">
			                <p class="attachment">
		<a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a>
							</p>
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
		                </div>
					</div>
					<div class="textbox_footer"></div>
				</div>
			<?php endwhile; ?>
			
		<?php else : ?>
		<div class="textbox">
			<div class="textbox_header"></div>
			<div class="textbox_inner">
                <div class="textbox-title">
                    <h1><?php _e('Not Found', 'kubrick'); ?></h1>
                </div>
                <div class="textbox-content article-content">
	                <div>
	                <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
					<?php get_search_form(); ?>
	                </div>
                </div>
			</div>
			<div class="textbox_footer"></div>
		</div>
		<?php endif; ?>
		</div>
	</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>